home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1998 #4
/
Amiga Plus CD - 1998 - No. 4.iso
/
pd
/
musik
/
qmaster
/
tutor
/
requesters.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-02-01
|
1KB
|
47 lines
/*
Tutorial arexx script. Demostrates comands of QMaster. You may use
these scripts as you like.
Request
GetDir
GetFile
GetString
By Kenneth C. Nilsen/Digital Surface. PUBLIC DOMAIN.
*/
options results /*get RESULT from comands*/
address command "LoadQM";if rc~=0 then exit 5 /* run QMASTER if needed */
address "QMASTER" /* attention QMASTER... */
/*--- here we use the comands --- --- --- --- --- --- --- --- --- --- ---*/
/* normal info requester */
Request "'Request title'" "'This is a request\ncool ?'" "YES|WOW"
/* directory requester */
GetDir "'Please pick a directory:'"
if rc=5 | RESULT="" then exit
Request "'Demo dir requester'" "'You picked directory:\n\n"result"\n\nLets pick a file...'" "AWSOME!"
/* file requester */
GetFile "'Please pick a file:'"
if rc=5 | RESULT="" then exit
Request "'Demo file requester'" "'You picked file:\n\n"result"\n\nLets get a string...'" "SURE"
/* string requester */
GetString "'GetString request'" "'Please type anything\nbelow:'"
if rc=5 then exit
Request "'Demo string requester'" "'You wrote:\n\n"result"\n\nThat`s it!...'" "NICE|COOL|OHNO"
exit 0